package com.czr.dao.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czr.dao.entity.CzrColumn;
import com.czr.dao.entity.CzrPost;
import com.czr.dao.entity.CzrReply;
import com.czr.dto.*;
import com.czr.vo.Result;

/**
 * <p>
 * 栏目表 服务类
 * </p>
 *
 */
public interface CzrPostService extends IService<CzrPost> {

    Result<Object> czrPost(CzrPost czrPost) throws Exception ;

    Result<Object> list(CzrPostParam czrPostParam,Integer userId) throws Exception ;

    Result<Object> glList(CzrPostParam czrPostParam,Integer userId) throws Exception ;

    Result<Object> addReading(Integer postId) throws Exception ;

    Result<Object> auditing(Integer postId,Integer status) throws Exception ;

    Result<Object> addLike(Integer postId,Integer type,Integer userId) throws Exception ;

    Result<Object> delPost(DelPostParam delPostParam, JSONObject cacheToken) throws Exception ;

    Result<Object> getInfo(Integer id) throws Exception ;

}
